package com.googlecode.connectlet.machine.provider.key;

import java.io.IOException;
import java.net.InetAddress;

import com.googlecode.connectlet.machine.provider.MachineConnection;
import com.googlecode.connectlet.machine.provider.MachineKey;

public class MachineKeyWithSize extends MachineKey {
	private int keySize;

	public MachineKeyWithSize(MachineKey key, int keySize) {
		super(key);
		this.keySize = keySize;
	}

	public MachineKeyWithSize(MachineConnection conn, int keyId, int keySize) {
		super(conn, keyId);
		this.keySize = keySize;
	}

	public MachineKeyWithSize(InetAddress ip, final int port, int keyId, int keySize) {
		super(ip, port, keyId);
		this.keySize = keySize;
	}

	public MachineKeyWithSize(String host, int port, int keyId, int keySize) throws IOException {
		super(host, port, keyId);
		this.keySize = keySize;
	}

	public int getKeySize() {
		return keySize;
	}
}